﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;
using Volo.Abp.Domain.Repositories;
using tms.Employees.Dto;
using Microsoft.AspNetCore.Mvc;

namespace tms.Employees
{
    [ApiExplorerSettings(GroupName = "v2")]
    public class EmployeeService : CrudAppService<Employee, EmployeeDto, Guid, PagedAndSortedResultRequestDto, CreateUpdateEmployeeDto>, IEmployeeService
    {
        private readonly IRepository<Employee, Guid> repository;

        public EmployeeService(IRepository<Employee, Guid> repository) : base(repository)
        {
            this.repository = repository;
        }

        public override Task<EmployeeDto> CreateAsync(CreateUpdateEmployeeDto input)
        {
            return base.CreateAsync(input);
        }
    }
}